home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 1.iso / dist / fw_chktex.idb / usr / freeware / share / chktexrc.z / chktexrc
Text File  |  2001-01-10  |  19KB  |  671 lines

  1. ##
  2. ##  ChkTeX v1.5, example resource file for ChkTeX.
  3. ##  Copyright (C) 1995-96 Jens T. Berger Thielemann
  4. ##
  5. ##  This program is free software; you can redistribute it and/or modify
  6. ##  it under the terms of the GNU General Public License as published by
  7. ##  the Free Software Foundation; either version 2 of the License, or
  8. ##  (at your option) any later version.
  9. ##
  10. ##  This program is distributed in the hope that it will be useful,
  11. ##  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. ##  GNU General Public License for more details.
  14. ##
  15. ##  You should have received a copy of the GNU General Public License
  16. ##  along with this program; if not, write to the Free Software
  17. ##  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. ##
  19. ##  Contact the author at:
  20. ##      Jens Berger
  21. ##      Spektrumvn. 4
  22. ##      N-0666 Oslo
  23. ##      Norway
  24. ##      E-mail: <jensthi@ifi.uio.no>
  25. ##
  26.  
  27. #####################################################################
  28. #
  29. # Note:   The  format  has  changed  slightly  (again).  The { ...  }
  30. # syntax does now mean case-sensitive comparing, while [ ...  ] means
  31. # case-insensitive   comparing  of  the  keywords.   Case-insensitive
  32. # comparing  of  the  keywords  is  only  supported  on  a few of the
  33. # keywords  (it's not meaningful in all contexts, and it slows ChkTeX
  34. # down).  Keywords supporting this are marked throughout the file.
  35. #
  36. # You  may  also reset a list by saying "KEYWORD = { ...  }"; it will
  37. # then be set equal to the contents of the list you specify.
  38. #
  39. # Comments  begin  with  `#', and continues for the rest of the line.
  40. # Blank lines plus leading and trailing spaces are of course ignored.
  41. #
  42. # The general format of this file is the following:
  43. #
  44. # KEYWORD { item item ...} [ item item ... ] /* Adds items */
  45. #
  46. # KEYWORD [ item item ...] { item item ... } /* Adds items */
  47. #
  48. # KEYWORD = item
  49. #
  50. # KEYWORD = { item item ... } /* Clears list before adding */
  51. #
  52. # KEYWORD = [ item item ... ] /* Clears list before adding */
  53. #
  54. # This  does  _not_  mean  that  you may alternate the forms; certain
  55. # keywords  demands  a  list, other a single value.  You thus have to
  56. # look at the examples of their use.
  57. #
  58. # Please  also  note  that if you specify a list-keyword twice, we'll
  59. # concatenate  the  lists.   If you you specify a item-keyword twice,
  60. # we'll kill the previous value.
  61. #
  62. # We  are  slightly  context-sensitive when detecting tokens like "}"
  63. # and "]"; they have to be preceded by a space.  This generally makes
  64. # life easier.
  65. #
  66. # Items  are separated by spaces.  Newlines are considered as spaces,
  67. # but  can't be escaped.  You may surround items with quotes (`"') to
  68. # easily put spaces into them.
  69. #
  70. # Escape sequences available:
  71. #
  72. #   Sequence        Resulting character
  73. #   !               A space (type `! ', not just a exclamation mark)
  74. #   !"              "
  75. #   !#              #
  76. #   !!              !
  77. #   !{              {
  78. #   !}              }
  79. #   ![              [
  80. #   !]              ]
  81. #   !=              =
  82. #   !b              Backspace
  83. #   !n              New line
  84. #   !r              Carriage return
  85. #   !t              Tab
  86. #   !f              Form feed
  87. #   !xNN            NN must be a hexadecimal number (00 - ff),
  88. #                   _both_ characters must be included.
  89. #   !dNNN           DDD must be a decimal number (000 - 255), all
  90. #                   three characters must be included. Unspecified
  91. #                   results if DDD > 255.
  92. #   !NNN            DDD must be a octal number (000 - 377), all
  93. #                   three characters must be included. Unspecified
  94. #                   results if DDD > 377.
  95. #
  96. # Minor  note:   As  you  can see, most of these escape sequences are
  97. # equal  to  those  in  C  (with  some extensions); however, we use !
  98. # instead of \ as escape character for obvious reasons.
  99. #
  100. #
  101. # Quick summary of keywords follows.  Keywords marked with a * accept
  102. # keywords accepting case-insensitive lists.
  103. #
  104. #   Abbrev*     - A list of abbreviations not automatically catched.
  105. #   CenterDots  - Commands/characters  which  should  have  \cdots in
  106. #                 between.
  107. #   CmdLine     - Default   commandline   options.    These  will  be
  108. #                 processed  before  the ones you give on the command
  109. #                 line.
  110. #   HyphDash   \
  111. #   NumDash     - No. of dashes allowed in different contexts.
  112. #   WordDash   /
  113. #   IJAccent    - Commands   which   puts   an  accent  _over_  their
  114. #                 argument.
  115. #   Italic      - Commands immediately turning on italic mode.
  116. #   ItalCmd     - Commands putting their argument into italic.
  117. #   Linker      - Commands  which should have a non-breaking space in
  118. #                 front.
  119. #   LowDots     - Commands/characters  which  should  have  \ldots in
  120. #                 between.
  121. #   MathEnvir   - Environments which turn on math mode.
  122. #   MathRoman   - Mathematical   operators   with  LaTeX  replacement
  123. #                 defined.
  124. #   NoCharNext  - Insists on that certain commands aren't followed by 
  125. #                 certain characters.
  126. #   NonItalic   - Commands immediately turning off italic mode.
  127. #   NotPreSpaced- Commands  which should not have a space in front of
  128. #                 them.
  129. #   Primitives  - Primitive TeX commands.
  130. #   PostLink    - Commands which generates a page reference.
  131. #   OutFormat   - Formats  to use for output.  See the -f & -v switch
  132. #                 in the main doc.
  133. #   QuoteStyle  - Either  "Traditional"  or "Logical".  See main doc,
  134. #                 warning 38.
  135. #   Silent      - These  commands  do not produce any textual output;
  136. #                 and are thus allowed to have a space after them.
  137. #   TabSize     - Tab size you are using.
  138. #   TeXInputs   - Paths to search \input and \include files for.
  139. #   UserWarn*   - These  strings  will be searched for throughout the
  140. #                 text.
  141. #   VerbEnvir   - Environments which contents should be ignored.
  142. #   VerbClear   - String we will overwrite unwanted data with.
  143. #   WipeArg     - Commands  (with  arguments) which should be ignored
  144. #                 in the checking.
  145. #
  146.  
  147.  
  148. #####################################################################
  149. #
  150. # Enter which type of  quote-style you are using here.  Currently, we
  151. # support the following styles:
  152. #
  153. #  Style        Example of use
  154. #  Traditional  "An example," he said, "would be great."
  155. #  Logical      "An example", he said, "would be great".
  156. #
  157.  
  158. QuoteStyle = Logical
  159.  
  160. #####################################################################
  161. #
  162. # Enter  here what interval you have between your tabs.  Only regular
  163. # intervals are supported.
  164. #
  165.  
  166. TabSize = 8
  167.  
  168. #####################################################################
  169. #
  170. # Here, you can put default commandline options; most users would for
  171. # instance like to put -v2 here.
  172. #
  173.  
  174. CmdLine
  175. {
  176.  
  177. }
  178.  
  179. #####################################################################
  180. #
  181. # These  patterns  will  be  searched for through the text; no matter
  182. # whether   they   appear  as  normal  text,  commands  or  whatever.
  183. # Currently case-sensitive.
  184. #
  185. # I usually define a special command like this:
  186. #
  187. # \def\unknown{\large\bf??}
  188. #
  189. # which  I use whenever there is some information I don't have at the
  190. # moment of writing.  Thus, it makes sense to search for it.
  191. #
  192. # You should be able to develop your own uses for this.
  193. #
  194.  
  195. UserWarn
  196. {
  197.  
  198.     \unknown
  199. ###
  200. #
  201. # Another example; one should write \chktex or Chk\TeX - never ChkTeX.
  202. #
  203. ###
  204.  
  205.     ChkTeX
  206. }
  207. [
  208.  
  209. ###
  210. #
  211. # You may put case-insensitive patterns here.
  212. #
  213. ###
  214.  
  215. ]
  216.  
  217. #####################################################################
  218. #
  219. # Here you can list the path of where ChkTeX should look for files it
  220. # \inputs.   The  // postfix is now supported; if you append a double
  221. # path-separator we'll recursively search that directory directories.
  222. # MS-DOS users must append \\ instead, e.g.  "C:\EMTEX\\".
  223. #
  224. # If you under either MS-DOS or UNIX wish to search an entire
  225. # partition or the complete directory tree, you must use *three*
  226. # slashes, e.g. "c:\\\" or "///". This may be considered to be a bug.
  227. #
  228. # By  default,  we'll  search the current directory (not recursively,
  229. # put  "//"  in the list for this); any paths specified below will be
  230. # searched in addition to this.
  231. #
  232.  
  233. TeXInputs
  234. {
  235.  
  236. }
  237.  
  238. #####################################################################
  239. #
  240. # Here you may specify more outputformats for use with the -v option,
  241. # it simply indexes  into this list.  Remember to use ! instead of \,
  242. # though.
  243. #
  244. # For explanation of how % fields expand; look at ChkTeX.{dvi,ps}.
  245. #
  246. # We will by default select entry number _two_ in this list (we count
  247. # from 0), and -v without any parameter selects entry number _three_.
  248. #
  249.  
  250. OutFormat
  251. {
  252.  
  253. # -v0; silent mode
  254. %f%b%l%b%c%b%n%b%m!n
  255.  
  256. # -v1; normal mode
  257. "%k %n in %f line %l: %m!n%r%s%t!n%u!n"
  258.  
  259. # -v2; fancy mode
  260. "%k %n in %f line %l: %m!n%r%i%s%I%t!n!n"
  261.  
  262. # -v3; lacheck mode
  263. "!"%f!", line %l: %m!n"
  264.  
  265. # -v4; verbose lacheck mode
  266. "!"%f!", line %l: %m!n%r%s%t!n%u!n"
  267.  
  268. }
  269.  
  270.  
  271.  
  272. #####################################################################
  273. #
  274. # These  commands  should be ignored when detecting whether a command
  275. # is ended by a space.
  276. #
  277.  
  278. Silent
  279. {
  280.     \rm \em \bf \it \sl \sf \sc \tt \selectfont
  281.     \rmfamily \sffamily \ttfamily \mdseries \bfseries
  282.     \slshape \scshape \relax
  283.     \vskip \pagebreak \nopagebreak
  284.  
  285.     \textrm \textem \textbf \textit \textsl \textsf \textsc \texttt
  286.  
  287.     \clearpage \ddots \dotfill \flushbottom \fussy \indent \linebreak
  288.     \onecolumn \pagebreak \pushtabs \poptabs \scriptsize \sloppy
  289.     \twocolumn \vdots
  290.     \today \kill \newline \thicklines \thinlines
  291.  
  292.     \columnsep \space \item \tiny \footnotesize \small \normalsize
  293.     \normal \large \Large \LARGE \huge \Huge \printindex
  294.  
  295.     \newpage \listoffigures \listoftables \tableofcontents
  296.     \maketitle \makeindex
  297.  
  298.     \hline \hrule \vrule
  299.  
  300.     \centering
  301.  
  302.     \bigskip \medskip \smallskip
  303.  
  304.     \noindent \expandafter
  305.  
  306.     \makeatletter \makeatother
  307.  
  308.     \columnseprule
  309.  
  310.     \textwidth \textheight \hsize \vsize
  311.  
  312.     \if \fi
  313.  
  314.     \csname \endcsname
  315.  
  316.     \z@ \p@ \@warning \typeout
  317.  
  318.     \dots \ldots \input \endinput \nextline \leavevmode \cdots
  319. -    \appendix \listfiles \and \quad
  320.     \vfill \vfil \hfill \hfil \topmargin \oddsidemargin
  321.     \frenchspacing \nonfrenchspacing
  322.     \begingroup \endgroup \par
  323.  
  324.     \vrefwarning \upshape \headheight \headsep \hoffset \voffset
  325.     \cdot \qquad
  326.     \left \right
  327. }
  328.  
  329. #####################################################################
  330. #
  331. # Here,  you  can  specify the length of various dashes.  We sort the
  332. # dash according to which type of characters that are on the left and
  333. # right of of it.  We are only conclusive if they are the same.
  334. #
  335. # We associate as follows:
  336. #
  337. #     Name        Type of character on each side
  338. #     HyphDash    Alphabetic (foo-bar)
  339. #     NumDash     Numeric (2--3)
  340. #     WordDash    Space (like this --- see?)
  341. #
  342. # Below you specify how many dashes which are legal in each case.  We
  343. # define 0 as an magic constant which always generates an error.  You
  344. # may specify more than one legal dash-length.
  345. #
  346. # Let's look at an example.  You use the following dash-syntax:
  347. #
  348. #     foo-bar
  349. #     2--3
  350. #     like this---see?
  351. #
  352. #
  353. # HYPHDASH { 1 3 }        # Either a hyphen, or inter-word
  354. # NUMDASH { 2 }           # Between words
  355. # WORDDASH { 0 }          # We never use this
  356. #
  357.  
  358. HyphDash
  359. {
  360.     1
  361. }
  362.  
  363. NumDash
  364. {
  365.     2
  366. }
  367.  
  368. WordDash
  369. {
  370.     3
  371. }
  372.  
  373. #####################################################################
  374. #
  375. # This  keyword  indicates commands  which argument isn't LaTeX code,
  376. # and which thus should be ignored.
  377. #
  378. # After the  command,  you  may place arguments  that  you  wish that
  379. # should be  wiped in the process;  use [] for optional arguments, {}
  380. # for required  ones and *  if the  command  supports  an alternative
  381. # variant. These should be separated from the command with a colon.
  382. #
  383. # For  instance,  if  you would like to wipe the \newcommand command,
  384. # you would declare it as \newcommand:*[][]{}
  385. #
  386. # These  commands may be "executed" before they're wiped, so you will
  387. # typically also wish to list filehandling commands and similar here.
  388. #
  389.  
  390. WipeArg
  391. {
  392.     \label:{} \ref:{} \vref:{} \pageref:{} \index:{} \cite:[]{}
  393.     \input:{} \verbatiminput:[]{} \listinginput:[]{}{}
  394.     \verbatimtabinput:[]{} \include:{} \includeonly:{} 
  395.     \bibitem:[]{}
  396. }
  397.  
  398. #####################################################################
  399. #
  400. # These  environments  contains  material  which  will  be typeset as
  401. # mathematics by LaTeX.  This turns on/off some warnings.
  402. #
  403. # We will automagically append a * to each keyword.
  404. #
  405.  
  406. MathEnvir
  407. {
  408.     displaymath math eqnarray array equation
  409. }
  410.  
  411. #####################################################################
  412. #
  413. # These  environments  contains  material  which  contents  should be
  414. # ignored.
  415. #
  416. # We will automagically append a * to each keyword.
  417. #
  418.  
  419. VerbEnvir
  420. {
  421.     verbatim comment listing verbatimtab rawhtml errexam picture texdraw
  422. }
  423.  
  424. #####################################################################
  425. #
  426. # ChkTeX  does  automagically  catch  most abbreviations; the ones we
  427. # need  to  list here, are those which are most likely to be followed
  428. # by a word with an upper-case letter (that is not the beginning of a
  429. # new sentence).
  430. #
  431. # The case-insensitive abbreviations are not really case-insensitive,
  432. # it seems to be more  practical to  only let  the first character be
  433. # case-insensitive, while the remaining are case-sensitive.
  434. #
  435. # To  speed  up the searching process somewhat, we require that these
  436. # end in a `.', this should not be a problem.
  437. #
  438. # Much  of  this  work (both the abbreviations below, and the regexps
  439. # necessary  to catch the remaining automatically) have been provided
  440. # by Russ Bubley, <russ@scs.leeds.ac.uk>.
  441. #
  442.  
  443.  
  444. Abbrev
  445. {
  446. # Ordinals
  447. 1st. 2nd. 3rd. 4th.
  448. # Titles
  449. Mr. Mrs. Miss. Ms. Dr. Prof. St.
  450.  
  451. #
  452. # Days
  453. # Mon. Tue. Wed. Thu. Fri. Sat. Sun.
  454. #
  455. # Months
  456. # Jan. Feb. Mar. Apr. May. Jun. Jul. Aug. Sep. Oct. Nov. Dec.
  457. #
  458. # Letters
  459. # Kt. Jr.
  460. #
  461. # Corporate
  462. # Co. Ltd.
  463. #
  464. # Addresses
  465. # Rd. Dr. St. Ave. Cres. Gdns. Sq. Circ. Terr. Pl. Arc. La. Clo. Ho. Est. Gn.
  466. #
  467. # Misc.
  468. # oe. pbab. ps. rsvp. Tx.
  469. }
  470. [
  471. ###
  472. #
  473. # The first letter is case-insensitive in the abbrevs in this
  474. # list. Due to the nature of the checking algorithm used for
  475. # this, entries consisting of only one character will be
  476. # silently ignored.
  477. #
  478. ##
  479.  
  480. # Latin
  481. # cf. "et al." etc. qed. qv. viz.
  482. #
  483. # Corporate
  484. # inc. plc.
  485. #
  486. # Misc
  487. # fax. pcs. qty. tel. misc.
  488. ]
  489.  
  490. #####################################################################
  491. #
  492. # Commands which accent characters, meaning that \i or \j (\imath and
  493. # \jmath in mathmode) should be used instead of `i' and `j'
  494. #
  495.  
  496. IJAccent
  497. {
  498.     \hat \check \breve \acute \grave \tilde \bar \vec \dot \ddot
  499.  
  500.     \' \` \^ \" \~ \= \. \u \v \H \t
  501.  
  502. ###
  503. #
  504. # The  remaining  accent commands (\c,\d,\b) put their accent _under_
  505. # the  character,  not above, and should thus be used with normal i's
  506. # and j's.
  507. #
  508. ###
  509.  
  510. }
  511.  
  512. #####################################################################
  513. #
  514. # Commands   which,  when  the  group  is  terminated,  needs  italic
  515. # correction.
  516. #
  517.  
  518. Italic
  519. {
  520.     \it \em \sl
  521. }
  522.  
  523. #####################################################################
  524. #
  525. # Commands which makes the font non-italic.
  526. #
  527.  
  528. NonItalic
  529. {
  530.     \bf \rm \sf \tt \sc
  531. }
  532.  
  533. #####################################################################
  534. #
  535. # Commands   which puts their argument into italic (and thus possibly
  536. # needs italic correction in the end.
  537. #
  538.  
  539. ItalCmd
  540. {
  541.     \textit \textsl \emph
  542. }
  543.  
  544. #####################################################################
  545. #
  546. # These  commands  all have in common that a pagebreak right in front
  547. # of  them  is  highly  undesirable; thus there should be no space in
  548. # front of them.
  549. #
  550.  
  551. PostLink
  552. {
  553.     \index \label
  554. }
  555.  
  556. #####################################################################
  557. #
  558. # These commands should not have a space in front of them for various
  559. # reasons.   I.e.   much  the  same as POSTLINK, but produces another
  560. # warning.
  561. #
  562.  
  563. NotPreSpaced
  564. {
  565.     \footnote \footnotemark \/
  566. }
  567.  
  568. #####################################################################
  569. #
  570. # The  commands  listed  here,  should be prepended with a `~', as in
  571. # "look  in  table~\ref{foo}", to avoid the references being split
  572. # across lines.
  573. #
  574.  
  575. Linker
  576. {
  577.     \ref \vref \pageref \cite
  578. }
  579.  
  580. #####################################################################
  581. #
  582. # Commands/characters  which  should  have  \cdots  in  between, e.g.
  583. # $1+2+3+\cdots+n$.
  584. #
  585.  
  586. CenterDots
  587. {
  588.     = + - \cdot \div & \times \geq \leq < >
  589. }
  590.  
  591. #####################################################################
  592. #
  593. # Commands/characters  which  should  have  \ldots  in  between, e.g.
  594. # $1,2,3,\ldots,n$.
  595. #
  596.  
  597. LowDots
  598. {
  599.     . , ;
  600. }
  601.  
  602. #####################################################################
  603. #
  604. # In maths mode, there are certain aliases for mathematical operators
  605. # like  sin, cos, etc.  Ignore the leading backslash in the commands,
  606. # and so forth.  You should list these below.
  607. #
  608.  
  609. MathRoman
  610. {
  611.     log lg ln lim limsup liminf sin arcsin sinh cos arccos cosh tan
  612.     arctan tanh cot coth sec csc max min sup inf arg ker dim hom det
  613.     exp Pr gcd deg bmod pmod mod
  614. }
  615.  
  616. #####################################################################
  617. #
  618. # These TeX commands have become unnecessary, as there are LaTeX cmds
  619. # that does the same. Purists should thus avoid these in their code.
  620. #
  621. # (These are a spell-corrected version of those lacheck uses).
  622. #
  623.  
  624. Primitives
  625. {
  626.    \above \advance \catcode \chardef \closein \closeout \copy \count
  627.    \countdef \cr \crcr \csname \delcode \dimendef \dimen \divide
  628.    \expandafter \font \hskip \vskip \openout
  629. }
  630.  
  631. #####################################################################
  632. #
  633. # Format: \command:characters
  634. #
  635. # We'll emit a warning if any of characters are found after the 
  636. # command.
  637. #
  638.  
  639. NoCharNext 
  640. {
  641.    \left:{}$ \right:{}$
  642. }
  643.  
  644. #####################################################################
  645. #
  646. # We're killing \verb@...@ commands and the arguments of the commands
  647. # listed above in WIPEARG by overwriting them with a string or a
  648. # single character.
  649. #
  650. # This  should  not contain an alphabetic character (in case the user
  651. # writes (\foo\verb@bar@), neither should it contain be one of LaTeX'
  652. # reserved  characters  (`#$%&~_^\{}'),  or any parenthesis character
  653. # ('()[]{}').   If  possible,  don't  use  a  punctuation  character,
  654. # either, or any spacing character.
  655. #
  656. # The  asterix is also unsuitable, as some commands behave in another
  657. # way  if  they  are  postpended with an asterix.  Which more or less
  658. # leaves  us  with  the  pipe.
  659. #
  660. # Please  note  that  this  may  also  be  a  _string_, which will be
  661. # repeated until the proper length is reached.
  662. #
  663.  
  664. VerbClear = "|"
  665.  
  666. #
  667. # All for now - have fun.
  668. #
  669. #####################################################################
  670.  
  671.